<!-- 搜索房源 -->
<template>
  <div class="box">
    <heads></heads>
    <tools></tools>
    <div class="tit1">
      <div class="list" style="margin-top: 0">
        <div class="li" style="cursor: pointer" @click="() => {
          $router.push('/');
        }
          ">
          <img src="../../assets/logo.png" />
        </div>
        <div class="sousuo">
          <input type="text" v-model="keyword" @keyup.enter="search" placeholder="请输入关键字搜索" />
          <p class="el-icon-search" @click="search"></p>
        </div>
        <!-- <div class="but">下载帮帮同城app</div> -->
        <downloadAppBtn></downloadAppBtn>
      </div>
    </div>

    <div class="list">
      <el-tabs v-model="activeName" @tab-click="handleClick" style="width: 1200px; margin: 0 auto; margin-bottom: 24px">
        <el-tab-pane :label="item.name" :name="item.name" :key="item.id" v-for="item in list1"></el-tab-pane>
      </el-tabs>
      <div style="
          display: flex;
          color: #333;
          font-size: 32px;
          font-weight: 600;
          width: 1200px;
          margin: auto;
          margin-bottom: 24px;
        ">
        共找到
        <div style="color: #1cbbb4; margin: 0 5px">{{ housetotal }}</div>
        个结果
      </div>
      <div class="houseData">
        <!-- 从大主页跳转 -->

        <div>
          <template v-for="(item, index) in houseList">
            <template v-if="activeName == '房源信息'">
              <div style="
                  width: 1200px;
                  display: flex;
                  margin-bottom: 24px;
                  padding-bottom: 24px;
                  border-bottom: 1px solid #e0e0e0;
                  justify-content: space-between;
                " :key="'02' + index">
                <div style="
                    width: 300px;
                    height: 200px;
                    background-color: #aaaaaa26;
                    border-radius: 10px;
                  ">
                  <img :src="item.display_diagram
                    ? item.display_diagram
                    : item.house_image.split('|')[0]
                    " style="width: 100%; height: 100%; object-fit: contain" />
                </div>
                <div style="
                    width: 700px;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                  ">
                  <div @click="details(item)" style="
                      font-size: 24px;
                      cursor: pointer;
                      font-weight: 600;
                      color: #333;
                      display: -webkit-box;
                      overflow: hidden;
                      text-overflow: ellipsis;
                      word-wrap: break-word;
                      white-space: normal !important;
                      -webkit-line-clamp: 2;
                      -webkit-box-orient: vertical;
                    ">
                    <tag-view :item="item"></tag-view>{{ item.title }}
                  </div>
                  <div style="font-size: 16px; color: #666666; margin-top: 12px">
                    {{ item.region }} {{ item.address }}
                  </div>
                  <div style="font-size: 16px; color: #666666; margin-top: 12px">
                    {{ item.houseType }} {{ item.AREA }}㎡ {{ item.floor }}
                  </div>
                  <div style="flex-grow: 1"></div>
                  <div style="display: flex; width: 700px; align-items: center">
                    <img style="
                        width: 31px;
                        height: 31px;
                        border-radius: 31px;
                        cursor: pointer;
                      " @click="toAgent(item)" :src="item.image ||
                        item.userImage ||
                        'https://pic.bangbangtongcheng.com/static/my/header.png'
                        " />

                    <div @click="toAgent(item)" style="
                        color: #666666;
                        font-size: 16px;
                        max-width: 300px;
                        margin: 0 10px;
                        cursor: pointer;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                      ">
                      {{ item.nikeName || "未命名用户" }}
                    </div>
                    <div @click="shopdetails(item)" style="
                        padding: 2px 5px;
                        color: #64b6a8;
                        border: #64b6a8 1px solid;
                        border-radius: 4px;
                        max-width: 240px;
                        cursor: pointer;
                        font-size: 16px;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                      ">
                      {{ item.shopName || "个人房源" }}
                    </div>
                  </div>
                </div>
                <div style="
                    width: 160px;
                    display: flex;
                    flex-direction: column;
                    align-items: flex-end;
                    justify-content: center;
                  ">
                  <div style="font-size: 30px; color: #e00000" v-if="item.transaction_type == 1 || item.transactionType == 1
                    ">
                    {{ item.price }}元
                  </div>
                  <div style="font-size: 30px; color: #e00000" v-if="item.transaction_type == 2 || item.transactionType == 2
                    ">
                    {{ item.price }}万
                  </div>
                  <div style="font-size: 16px; color: #333333" v-if="item.transaction_type == 2 || item.transactionType == 2
                    ">
                    {{ ((item.price * 10000) / item.AREA).toFixed(2) }}元/㎡
                  </div>
                </div>
              </div>
            </template>
            <template v-if="'房产商家' == activeName">
              <div class="listlist" :key="index">
                <div class="li">
                  <!-- <el-checkbox v-if="checkboxShow"></el-checkbox> -->
                  <img class="img" :src="$img + item.image" style="
                      object-fit: contain;
                      cursor: pointer;
                      background-color: rgb(209 204 204 / 20%);
                    " @click="details(item.id)" />
                  <div class="wenzi" style="cursor: pointer" @click="details(item.id)">
                    <p class="p1">{{ item.shopName }}</p>
                    <p class="p2">地址：{{ item.shopAddress }}</p>
                    <p class="p5">
                      <span style="color: red; font-size: 22px; margin-right: 21px">{{ item.houseNum }}套</span>
                      <span style="font-size: 14px">在售/在租</span>
                    </p>
                  </div>
                </div>
              </div>
            </template>
            <template v-if="activeName == '车源信息'">
              <div class="traffic" :key="'01' + index">
                <bbcz-item :item="item" @details="details" @toAgent="toAgent" @shopdetails="shopdetails"></bbcz-item>
              </div>
            </template>
            <div class="li" :key="'03' + index" v-if="activeName == '汽车服务'">
              <img class="biao" @click="details(item)" style="
                  object-fit: contain;
                  cursor: pointer;
                  background-color: #00000033;
                " :src="item.coverPhoto ? item.coverPhoto : $img + item.houseImageDiv
                  " />
              <div class="fwxm">
                <div class="t_1" style="cursor: pointer" @click="details(item)">
                  {{ item.entryName }}
                </div>
                <div class="t_2" style="cursor: pointer" @click="details(item)">
                  <span style="margin-right: 5px" class="line7">{{
                    item.entryDescription
                  }}</span>
                </div>
              </div>
            </div>
            <div class="traffic" :key="'05' + index" v-if="activeName == '汽车商家'">
              >
              <img class="biao" @click="details(item)" style="object-fit: contain; background-color: #00000033" :src="item.storeCoverImage
                ? item.storeCoverImage
                : $img + item.houseImageDiv
                " />
              <div class="name" @click="details(item)">
                <div class="namesse">
                  <div>
                    <div class="t_1">
                      {{ item.storeName }}
                    </div>
                    <div class="t_5">
                      地址：{{ item.officeAddress.slice(6) }}
                    </div>
                  </div>
                  <div class="t_3_mr">
                    {{
                      item.storeType == 1
                      ? "4S店"
                      : item.storeType == 2
                        ? "汽贸店"
                        : item.storeType == 3
                          ? "美容装饰"
                          : "维修保养"
                    }}
                  </div>
                </div>
              </div>
            </div>
            <template v-if="activeName == '招聘信息'">
              <invite-item :key="index" :item="item" :line="true" :pb="true"></invite-item>
            </template>
            <template v-if="activeName == '人才简历'">
              <recommended :key="index" :item="item"></recommended>
            </template>
          </template>
        </div>

        <div v-if="housetotal == 0" style="height: 450px; padding-top: 120px; box-sizing: border-box">
          <el-empty></el-empty>
        </div>
        <div class="fenye">
          <el-pagination @current-change="HousesCurrentChange" background layout="prev, pager, next" :total="housetotal"
            :current-page="HousesPage.PageNo" :page-size="HousesPage.pageSize"></el-pagination>
        </div>
      </div>
    </div>
    <floor></floor>
    <div class="gotop" @click="toTop" v-show="showToTop" style="left: calc(100vw / 2 + 600px);">
      <img src="@/assets/top.png" />返回顶部
    </div>
  </div>
</template>

<script>
import floor from "../../components/floor";
import heads from "../../components/head";
import houseList from "../../components/houseList.vue";
import tools from "../../components/tools.vue";
import BbczItem from "./comp/bbcz-item.vue";
import inviteItem from "../invite/comp/item.vue";
import recommended from "../invite/comp/recommended.vue";

export default {
  components: {
    floor,
    heads,
    houseList,
    tools,
    BbczItem,
    inviteItem,
    recommended,
  },
  data() {
    return {
      activeName: "房源信息",
      list1: [
        { id: 1, name: "房源信息" },
        { id: 2, name: "房产商家" },
        { id: 3, name: "车源信息" },
        { id: 4, name: "汽车服务" },
        { id: 5, name: "汽车商家" },
        { id: 6, name: "人才简历" },
        { id: 7, name: "招聘信息" },
      ],
      olds: "3",
      HousesPage: {
        pageSize: 10,
        pageNo: 1,
        keyword: "",
        upStatus: 1,
        examineStatus: 2,
        isLz: "0",
      },
      keyword: "",
      housetotal: 0,
      houseList: [],
      indexOf: 3,
      pageSize: 10,
      pageNo: 1,
      pageCount: 1,
    };
  },
  created() {
    this.HousesPage.keyword = this.$route.query.search || "";
    this.indexOf = this.$route.query.index || 1;
    this.keyword = this.$route.query.search || "";
    this.getData();
    // this.getHouseInfo()
    // this.getDictionaries()
  },
  watch: {
    activeName(newV) {
      this.getData(newV);
      //   console.log("new", newV);
    },
  },
  methods: {
    handleClick(value) {
      console.log("value", value);
    },
    getData(value = this.activeName) {
      this.houseList = [];
      this.housetotal = 0;
      if (value == "房源信息") {
        this.getHouseInfo();
      } else if (value == "房产商家") {
        this.getShopInfo();
      } else if (value == "车源信息") {
        this.getSearchVehicleSourceHomePage();
      } else if (value == "汽车服务") {
        this.getOwnerServices();
      } else if (value == "汽车商家") {
        this.getSearchDistributorHomePage();
      } else if (value == "人才简历") {
        this.talentResumeBigHomePageSearch();
      } else if (value == "招聘信息") {
        this.recruitmentBigHomePageSearch();
      }
    },
    getHouseInfo() {
      this.$getHttp("/mob/home/getHouseInfo", {
        pageSize: this.HousesPage.pageSize,
        pageNo: this.HousesPage.pageNo,
        orderSort: 1,
        keyword: this.keyword,
        upStatus: 1,
        examineStatus: 2,
        isLz: "0",
      }).then((data) => {
        data.list.forEach((e) => {
          if (e.hasOwnProperty("FLOOR")) {
            if (e.FLOOR.indexOf("|") == -1) {
              e.FLOOR = "";
            } else {
              e.FLOOR =
                e.FLOOR.split("|")[0] +
                "层/" +
                "共" +
                e.FLOOR.split("|")[1] +
                "层";
            }
          }
          if (!e.hasOwnProperty("shop_name")) {
            e.shop_name = "个人房源";
          }
          e.imagestate = true;
          if (!e.hasOwnProperty("image")) {
            e.imagestate = false;
          }
        });

        this.houseList = data.list;
        this.housetotal = data.count;
      });
    },
    // 房产商家
    getShopInfo() {
      this.$getHttp("/mob/user/getShopInfo", {
        pageSize: this.HousesPage.pageSize,
        pageNo: this.HousesPage.pageNo,
        longitude: 30,
        latitude: 112,
        keyword: this.keyword,
        status: "1",
        shopType: "1",
      }).then((data) => {
        data.page.list.forEach((e) => {
          e.image = e.image.split("|")[0];
          e.phonestate = false;
        });
        this.houseList = data.page.list;
        this.housetotal = data.page.count;
      });
    },
    // 车源信息
    getSearchVehicleSourceHomePage() {
      this.$getHttp("/api/mobile/vehicleOwner/getSearchVehicleSourceHomePage", {
        pageSize: this.HousesPage.pageSize,
        pageNo: this.HousesPage.pageNo,
        searchKeyword: this.keyword,
      }).then((data) => {
        this.houseList = data.vehicleSourceHome.pageList;
        this.housetotal = data.vehicleSourceHome.pageCount;
      });
    },
    // 汽车服务
    getOwnerServices() {
      this.$getHttp("/api/mobile/vehicleOwner/getOwnerServices", {
        pageSize: this.HousesPage.pageSize,
        pageNo: this.HousesPage.pageNo,
        searchKeyword: this.keyword,
      }).then((data) => {
        this.houseList = data.ownerServiceList.pageList;
        this.housetotal = data.ownerServiceList.pageCount;
      });
    },
    // 汽车商家
    getSearchDistributorHomePage() {
      this.$getHttp("/api/mobile/vehicleOwner/getSearchDistributorHomePage", {
        pageSize: this.HousesPage.pageSize,
        pageNo: this.HousesPage.pageNo,
        searchKeyword: this.keyword,
      }).then((data) => {
        this.houseList = data.distributorHome.pageList;
        this.housetotal = data.distributorHome.pageCount;
      });
    },
    // 人才简历
    talentResumeBigHomePageSearch() {
      this.$getHttp(
        "/api/mobile/personnelOwner/talentResumeBigHomePageSearch",
        {
          pageSize: this.HousesPage.pageSize,
          pageNo: this.HousesPage.pageNo,
          searchKeyword: this.keyword,
        }
      ).then((data) => {
        this.houseList = data.resumeMainHomeSearchPageList.pageList;
        this.housetotal = data.resumeMainHomeSearchPageList.pageCount;
      });
    },
    // 招聘信息
    recruitmentBigHomePageSearch() {
      this.$getHttp("/api/mobile/personnelOwner/recruitmentBigHomePageSearch", {
        pageSize: this.HousesPage.pageSize,
        pageNo: this.HousesPage.pageNo,
        searchKeyword: this.keyword,
      }).then((data) => {
        this.houseList = data.recruitmentMainHomeSearchPageList.pageList;
        this.housetotal = data.recruitmentMainHomeSearchPageList.pageCount;
      });
    },

    getDictionaries() {
      this.$getHttp("/mob/home/getDictionaries", { type: "8,9,10,1" }).then(
        (data) => {
          if (data.code == 200) {
            data.list.forEach((e) => {
              if (e.type == 8) this.type8.push(e);
              if (e.type == 9) this.type9.push(e);
              if (e.type == 10) this.type10.push(e);
              if (e.type == 1) this.type1.push(e);
            });
          }
        }
      );
    },
    search() {
      if (this.searchtext != "") {
        this.HousesPage.keyword = this.searchtext
          ? this.searchtext
          : this.HousesPage.keyword;
        this.HousesPage.pageNo = 1;
        // this.getHouseInfo()
        this.getData();
      }
    },
    //页数改变时触发
    HousesCurrentChange(e) {
      this.scrollToElement(document.querySelector(".tit1"));
      this.HousesPage.pageNo = e;
      this.getData();
    },
    details(item) {
      // 车源
      if (item.vehicleType) {
        this.openUrl({
          path: "/index/newSourceDetails",
          query: {
            id: item.id,
          },
        });
      } else if (item.entryName) {
        this.openUrl({
          path: "/index/serviceDetails",
          query: {
            id: item.id,
          },
        });
      } else if (item.storeName) {
        this.openUrl({
          path: "/index/newDealerDetails",
          query: {
            id: item.id,
          },
        });
      } else if (item.transactionType == 1) {
        this.openUrl({
          path: "/index/leaseDetails",
          query: {
            id: item.id,
          },
        });
      } else {
        // 新房
        this.openUrl({
          path: "/index/newHouseDetails",
          query: {
            id: item.id,
          },
        });
      }
    },
    toAgent(item) {
      if (this.indexOf == 1) {
        if (item.category == "2") {
          //车源
          if (!item.isAgent && !item.storeId) {
            this.openUrl({
              path: "/index/goldConsultant",
              query: {
                id: item.publisherId || item.id,
              },
            });
            return;
          }
          this.openUrl({
            path: "/index/goldConsultant",
            query: {
              id: item.publisherId,
            },
          });
        } else if (item.category == "1") {
          if (!item.isAgent && !item.shopId) {
            this.openUrl({
              path: "/index/goldConsultant",
              query: {
                id: item.user_id || item.userId || item.publisherId || item.id,
              },
            });
            return;
          }
          this.openUrl({
            path: "/index/goldConsultant",
            query: {
              id: item.publisherId,
            },
          });
        }
      } else if (this.indexOf == 2) {
        if (!item.isAgent && !item.storeId) {
          this.openUrl({
            path: "/index/goldConsultant",
            query: {
              id: item.publisherId || item.id,
            },
          });
          return;
        }
        this.openUrl({
          path: "/index/goldConsultant",
          query: {
            id: item.publisherId,
          },
        });
      }
    },
    shopdetails(item) {
      if (this.indexOf == 1) {
        if (item.category == "2") {
          if (item.shopName || item.storeName) {
            const routeLink = this.$router.resolve({
              path: "/index/newDealerDetails?id=" + item.storeId,
            });
            window.open(routeLink.href, "_blank");
          } else {
            this.$message({
              message: "个人车源！",
              type: "error",
              offset: 120,
              duration: 2000,
            });
          }
        } else if (item.category == "1") {
          if (!item.shop_name) {
            this.$message({
              message: "个人房源！",
              type: "error",
              offset: 120,
              duration: 2000,
            });
          } else {
            const routeLink = this.$router.resolve({
              path: "/index/ShopDetails?id=" + item.storeId,
            });
            window.open(routeLink.href, "_blank");
          }
        }
      } else if (this.indexOf == 2) {
        if (item.distributor) {
          const routeLink = this.$router.resolve({
            path: "/index/newDealerDetails?id=" + item.distributor.id,
          });
          window.open(routeLink.href, "_blank");
        } else {
          this.$message({
            message: "个人车源！",
            type: "error",
            offset: 120,
            duration: 2000,
          });
        }
      }
    },
  },
};
</script>

<style lang="less" scoped>
.box {
  position: relative;
  width: 100%;
  // max-width: 1920px;
  min-width: 1200px;
  padding-bottom: 200px;
}

.tit1 {
  width: 100%;
  height: 120px;
  background-color: #f2f2f2;

  .list {
    width: 1200px;
    margin-left: 50%;
    // padding-top: 32px;
    transform: translateX(-50%);
    background-color: #f2f2f2;

    div {
      display: inline-block;
      vertical-align: middle;
      font-size: 20px;
      color: #333333;
      margin-right: 40px;
      cursor: pointer;
    }

    .li {
      font-size: 28px;
      color: #64b6a8;
      margin-right: 60px;
      margin-top: 32px;
      padding-bottom: 24px;
      margin-bottom: 0;
      border-bottom: 0;

      img {
        /* width: 60px;
				height: 60px; */
      }

      span {
        vertical-align: middle;
      }
    }

    .sousuo {
      position: relative;
      display: inline-block;
      vertical-align: middle;
      width: 380px;
      height: 50px;
      background: #ffffff;
      border-radius: 4px;
      font-size: 18px;
      overflow: hidden;

      input {
        width: 300px;
        height: 55px;
        line-height: 55px;
        text-indent: 16px;
        font-size: 18px;
      }

      img {
        width: 25px;
        height: 25px;
        margin-left: 20px;
        cursor: pointer;
      }

      p {
        position: absolute;
        top: 0;
        right: 0;
        width: 80px;
        height: 55px;
        background-color: #64b6a8;
        text-align: center;
        line-height: 55px;
        font-size: 24px;
        cursor: pointer;
        color: #ffffff;
      }
    }

    .but {
      display: inline-block;
      width: 200px;
      height: 50px;
      background: #64b6a8;
      border-radius: 6px;
      text-align: center;
      line-height: 50px;
      color: #fff;
    }
  }
}

.list {
  margin-top: 30px;

  .houseData {
    width: 1200px;
    margin: 0 auto;

    .traffic {
      position: relative;
      padding-bottom: 24px;
      margin-bottom: 24px;
      border-bottom: 1px solid #e0e0e0;
      height: 225px;

      .biao {
        width: 300px;
        height: 200px;
        border-radius: 10px;
      }

      .name {
        display: inline-block;
        vertical-align: top;
        margin-left: 24px;
        position: relative;
        height: 200px;
        width: 700px;

        .t_1 {
          font-size: 24px;
          cursor: pointer;
          font-weight: 600;
          color: #000;
        }

        .t_2 {
          font-size: 16px;
          color: #666666;
          margin-top: 12px;
        }

        .t_3 {
          font-size: 16px;
          color: #666666;
          margin-top: 12px;
        }

        .t_4 {
          position: absolute;
          font-size: 16px;
          color: #666666;
          bottom: 0;
          left: 0;
          white-space: nowrap;

          img {
            width: 31px;
            height: 31px;
            border-radius: 31px;
          }

          div {
            display: inline-block;
            padding: 0px 5px;
            height: 30px;
            background: #ffffff;
            border: 1px solid #64b6a8;
            border-radius: 4px;
            text-align: center;
            line-height: 30px;
            margin-left: 24px;
            color: #64b6a8;
          }
        }
      }

      .qian {
        position: absolute;
        top: 62px;
        right: 0;

        .p1 {
          font-size: 30px;
          color: #e00000;
          text-align: center;
        }

        .p2 {
          font-size: 16px;
          color: #333333;
          text-align: center;
        }
      }
    }

    .fenye {
      width: 100%;
      height: 50px;
      text-align: center;
      margin-bottom: 50px;
    }
  }
}

.li {
  position: relative;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;

  .biao {
    width: 300px;
    height: 200px;
    border-radius: 10px;
  }

  .fwxm {
    display: inline-block;
    vertical-align: top;
    margin-left: 24px;
    position: relative;
    height: 200px;
    width: 700px;

    .t_1 {
      font-size: 24px;
      cursor: pointer;
      font-weight: 600;
      color: #64b6a8;
    }

    .t_2 {
      font-size: 16px;
      color: #666666;
      margin-top: 12px;
    }
  }

  .name {
    display: inline-block;
    vertical-align: top;
    margin-left: 24px;
    position: relative;
    height: 200px;
    width: 700px;

    .t_1 {
      font-size: 24px;
      cursor: pointer;
      font-weight: 600;
    }

    .t_2 {
      font-size: 16px;
      color: #666666;
      margin-top: 12px;
    }

    .t_3 {
      font-size: 16px;
      color: #666666;
      margin-top: 12px;
    }

    .t_4 {
      position: absolute;
      font-size: 16px;
      color: #666666;
      bottom: 0;
      left: 0;
      white-space: nowrap;

      img {
        vertical-align: top;
        width: 31px;
        height: 31px;
        border-radius: 31px;
      }

      div {
        display: inline-block;
        //width: 90px;
        padding: 0px 5px;
        height: 30px;
        background: #ffffff;
        border: 1px solid #64b6a8;
        border-radius: 4px;
        text-align: center;
        line-height: 30px;
        margin-left: 24px;
        color: #64b6a8;
      }
    }
  }

  .qian {
    position: absolute;
    top: 62px;
    right: 0;

    .p1 {
      //width: 120px;
      //font-size: 32px;
      font-size: 30px;
      color: #e00000;
      text-align: center;
    }

    .p2 {
      //width: 120px;
      //font-size: 18px;
      font-size: 16px;
      color: #333333;
      text-align: center;
    }
  }
}

.listlist {
  margin-top: 12px;

  .li {
    position: relative;
    margin-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 32px;

    .img {
      width: 300px;
      height: 200px;
    }

    .wenzi {
      display: inline-block;
      vertical-align: top;
      width: 350px;
      height: 154px;
      margin-left: 14px;

      .p1 {
        font-size: 20px;
        color: #333333;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }

      .p2 {
        font-size: 14px;
        color: #666666;
        margin-top: 8px;
        margin-bottom: 8px;
      }

      .p3 {
        font-size: 14px;
        color: #666666;
      }

      .p4 {
        position: absolute;
        bottom: 0;

        img {
          width: 30px;
          height: 30px;
          cursor: pointer;
        }

        span {
          font-size: 14px;
          vertical-align: middle;
        }

        .gong {
          display: inline-block;
          width: 68px;
          height: 23px;
          background: #ffffff;
          border: 1px solid #64b6a8;
          border-radius: 4px;
          text-align: center;
          line-height: 23px;
          color: #64b6a8;
          margin-left: 10px;
          cursor: pointer;
        }
      }

      .p5 {
        position: absolute;
        bottom: 32px;
        color: #666666;
      }

      .p6 {
        position: absolute;
        bottom: 0;

        span {
          font-size: 14px;
          display: block;
          margin-top: 10px;
        }
      }
    }

    .but {
      position: absolute;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      //width: 151px;
      top: 34px;
      right: 0px;

      .but1 {
        cursor: pointer;
        position: relative;
        box-sizing: border-box;
        display: inline-block;
        padding: 16px 18px 16px 67px;
        height: 54px;
        background: rgba(100, 182, 168, 0.08);
        border: 1px solid #64b6a8;
        border-radius: 6px;
        font-size: 16px;
        color: #64b6a8;
        margin-bottom: 17px;

        img {
          position: absolute;
          width: 40px;
          height: 40px;
          top: 7px;
          left: 19px;
        }
      }

      .but2 {
        cursor: pointer;
        width: 151px;
        position: relative;
        box-sizing: border-box;
        display: inline-block;
        align-items: center;
        padding: 16px 18px 16px 67px;
        height: 54px;
        background: #64b6a8;
        border-radius: 6px;
        font-size: 16px;
        color: #fff;

        img {
          position: absolute;
          width: 40px;
          height: 40px;
          top: 7px;
          left: 19px;
        }
      }
    }

    .jiage {
      position: absolute;
      width: 110px;
      top: 45px;
      right: 24px;

      p {
        text-align: center;
      }

      .p1 {
        font-size: 26px;
        color: red;
      }

      .p2 {
        font-size: 12px;
        color: #333;
        margin-top: 10px;
      }
    }

    .el-checkbox {
      vertical-align: middle;
      margin-right: 20px;
    }

    /deep/.el-checkbox__inner {
      width: 34px;
      height: 34px;
      border-radius: 50%;
    }

    /deep/.el-checkbox__inner::after {
      border: 2px solid #fff;
      width: 8px;
      height: 18px;
      left: 11px;
      top: 4px;
      border-left: 0;
      border-top: 0;
    }

    /deep/.el-checkbox__input.is-checked .el-checkbox__inner,
    /deep/.el-checkbox__input.is-indeterminate .el-checkbox__inner {
      background-color: #64b6a8;
      border-color: #64b6a8;
    }
  }
}

// 车商家
.name {
  display: inline-block;
  vertical-align: top;
  margin-left: 24px;
  position: relative;
  height: 200px;
  width: 640px;

  .namesse {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;

    .t_3_mr {
      width: 96px;
      height: 30px;
      border-radius: 4px;
      border: 1px solid #3ea3e2;
      font-size: 20px;
      font-weight: 400;
      color: #3ea3e2;
      text-align: center;
      line-height: 30px;
      margin-right: 12px;
    }
  }

  .t_1 {
    font-size: 26px;
    cursor: pointer;

    .t_1_1 {
      position: absolute;
      width: 130px;
      height: 58px;
      top: 30px;
      z-index: 999999;
      //top: 30px;
      //right: 20px;
    }
  }

  .t_2 {
    font-size: 18px;
    color: #666666;
    margin-top: 12px;
  }

  .t_3 {
    font-size: 18px;
    color: #666666;
    margin-top: 12px;
  }

  .t_4 {
    position: absolute;
    font-size: 18px;
    color: #666666;
    bottom: 0;
    left: 0;
    white-space: nowrap;

    img {
      width: 31px;
      height: 31px;
    }

    div {
      display: inline-block;
      //width: 90px;
      padding: 0px 5px;
      height: 30px;
      background: #ffffff;
      border: 1px solid #64b6a8;
      border-radius: 4px;
      text-align: center;
      line-height: 30px;
      margin-left: 24px;
      color: #64b6a8;
    }
  }

  .t_5 {
    font-size: 18px;
    font-weight: 400;
    color: #666666;
    margin-top: 30px;
  }
}
</style>
